package models

import (
	"gorm.io/gorm"
	"time"
)
//好友申请
type FriendApply struct {
	Id			int64   `gorm:"column:id",json:"id"`			// id
	HostId		string 	`gorm:"column:host_id",json:"host_id"`	// 宿主id
	ApplyId		string	`gorm:"column:apply_id",json:"apply_id"`// 申请人id
	State		int8	`gorm:"column:state",json:"state"`		// 状态,0:已拒绝，1:已同意，2:待验证
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt gorm.DeletedAt `gorm:"index"`
}

// 设置表明为 interest_colloct
func (this *FriendApply)TableName()string  {
	return "friend_apply"
}
